package com.exmple.service.impl;

import com.exmple.dao.IAddressDao;
import com.exmple.model.Address;
import com.exmple.service.IAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class AddressServiceImpl implements IAddressService {
    @Autowired
    private IAddressDao addressDaoImpl1;
    @Override
    public int insertAddress() {
        int id=1;
        Address address=new Address();
        address.setId(id);
        address.setAddr("石家庄");
        return  addressDaoImpl1.insertAddress(address);
    }
}
